@model viBook.Models.Book

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Book</legend>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">AuthorId</div>
    <div class="display-field">@Model.AuthorId</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">View</div>
    <div class="display-field">@Model.View</div>

    <div class="display-label">CoverUrl</div>
    <div class="display-field">@Model.CoverUrl</div>

    <div class="display-label">UploadedDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.UploadedDate)</div>

    <div class="display-label">UploadedBy</div>
    <div class="display-field">@Model.UploadedBy</div>

    <div class="display-label">Tag</div>
    <div class="display-field">@Model.Tag</div>

    <div class="display-label">CategoryId</div>
    <div class="display-field">@Model.CategoryId</div>

    <div class="display-label">Comments</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Comments).ToString()</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


